package com.jdrx.sw.sewage.beans.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "DeviceIotVO", description = "分散式污水设备VO")
@Data
public class DeviceIotVO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @ApiModelProperty(value = "领用设备id")
    private Long deviceId;

    @ApiModelProperty(value = "入库设备id")
    private Long sdsId;

    @ApiModelProperty(value = "设备型号")
    private String deviceModel;

    @ApiModelProperty(value = "安装时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date insTime;

    @ApiModelProperty(value = "启用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date enableTime;

    @ApiModelProperty(value = "设备照片")
    private String attach;

    @ApiModelProperty(value = "站点工艺单元id")
    private Long processunitId;

    @ApiModelProperty(value = "设备规格")
    private String dossierSpec;

    @ApiModelProperty(value = "设备生产厂家")
    private String deviceFactory;

    @ApiModelProperty(value = "设备编号(后台自动生成)")
    private String deviceNum;

    @ApiModelProperty(value = "维保周期")
    private Integer maintenanceCycle;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "站点采集设备id")
    private Long gatherDevId;

    @ApiModelProperty(value = "站点采集设备值")
    private String gatherDevValue;

    @ApiModelProperty(value = "站点采集设备名称")
    private String gatherDevName;

    @ApiModelProperty(value = "站点id")
    private Long stationId;

    @ApiModelProperty(value = "站点名称")
    private String stationName;

    @ApiModelProperty(value = "责任人名字  张三,李四")
    private String dutyUserNames;

    @ApiModelProperty(value = "责任人id  1,2")
    private String opeLeaderId;

    @ApiModelProperty(value = "物联网网关编号")
    private String iotGatewayNum;

    @ApiModelProperty(value = "物料id")
    private Long materielId;

    @ApiModelProperty(value = "物料名称")
    private String materielName;

    @ApiModelProperty(value = "告警类型id")
    private Long alarmTypeId;

    @ApiModelProperty(value = "告警类型值")
    private String alarmTypeValue;

    @ApiModelProperty(value = "告警类型名称")
    private String alarmTypeName;

    @ApiModelProperty(value = "记录人名称")
    private String updateName;

    @ApiModelProperty(value = "记录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "采集设备点位id")
    private Long gatherDevPointId;

    @ApiModelProperty(value = "采集设备点位名称")
    private String gatherDevPointName;

    @ApiModelProperty(value = "采集设备点位值")
    private String gatherDevPointValue;

    @ApiModelProperty(value = "采集设备点位参数单位")
    private String parUnit;

    @ApiModelProperty(value = "采集设备点位参数值")
    private Double parValue;

    @ApiModelProperty(value = "采集设备点位参数读或写")
    private Boolean readWrite;

    @ApiModelProperty(value = "采集设备点位参数精度")
    private Integer precision;

    @ApiModelProperty("值")
    private Double val = 0d;

    @ApiModelProperty(value = "是否初始工作时间(0 - 否 1 - 是)")
    private Integer initWorkTime;

    @ApiModelProperty(value = "维保周期")
    private Integer maintenanceCycleHour;

    @ApiModelProperty(value = "是否虚拟设备点位(0 - 否 1 - 是)")
    private Integer plcLogicPoint;
}
